class User
{
//	char	name[BBSID_LENGTH+1]; 		// bbsID
	string	name;
	ip;
	GameTable 	*gameTable;				// Which table is this used sitting by?.
	...
	
	
	// the (top,left) coordinate position for a specified player (by player index -- 'A'..'H')
	int		player_pos_top[MAX_PLAYERS];	
	int		player_pos_left[MAX_PLAYERS]; 	
	
	
	
	string	get_my_name();
	int		set_player_pos();
	int		show_player( int playerIdx, PlayerStatusItem item, int newValue, ShowMode mode);
	
};


string	User::get_my_name()
{
	return 	name;
}	


// show different picture for different user.

int 	User::show_player( int playerIdx, PlayerStatusItem item, int newValue, ShowMode mode)
{

	int x0 = player_pos_left[playerIdx];
	int y0 = player_pos_tpdbef[playerIdx];   
	
	

	switch (PlayerStatusItem)
	{
		E_PSI_INDICATION:		show_player_indication(x0, y0, (Indication) newValue);		break;
		
		E_PSI_SEAT:				show_player_index(x0+3, y0, newValue);			break;
			
		E_PSI_NAME:				show_player_name(x0+6, y0, newValue );			break;
			
		E_PSI_ROLE:				show_player_role(x0, y0+1, newValue);			break;
			
		E_PSI_HANDCARD_COUNT:	show_player_cardnum(x0+5, y0+1, newValue);		break;	
	
		E_PSI_BLOOD:			show_player_blood(x0+9, y0+1, newValue);		break;
			
		E_PSI_CAPBILITY:		show_player_cap(x0, y0+2, (Capbility)newValue); break;
			
		E_PSI_HORSE:			show_player_equip_horse(x0+6, y0+3, (Horse)newValue); 		break;
			
		E_PSI_GUN:				show_player_equip_gun(x0+12, y0+3,  (Gun)newValue);			break;
			
		E_PSI_BARREL:			show_player_equip_barrel(x0+14, y0+3, newValue);			break;
		
		E_PSI_JAIL:				show_player_luck_jail(x0+6, y0+4, newValue);	break;
			
		E_PSI_DYNAMITE:			show_player_luck_bomb(x0+12, y0+4, newValue );	break;
	
		default:
								
	}
	
	
	
	return 0;
}

